package com.edu.demo.service;

import com.edu.demo.entity.MediumTerm;
import com.baomidou.mybatisplus.extension.service.IService;
import com.edu.demo.entity.Project;

/**
 * 中期检查 服务类
 * </p>
 *
 * @author jixuewei
 * @since 2023-01-12
 */
public interface IMediumTermService extends IService<MediumTerm> {

    /**
     * 提交中期报告
     * @param mediumTerm
     * @return
     */
    int submitMedium(MediumTerm mediumTerm) throws Exception;

    /**
     * 查看某个项目的中期报告
     * @param projectId
     * @return
     */
    MediumTerm selectMedium(Integer projectId);


    /**
     * 更新中期报告
     * @param mediumTerm
     * @return
     */
    int updateMedium(MediumTerm mediumTerm);

    /**
     * 教师将中期检查改为已阅
     * @param mediumTerm
     * @return
     */
    int checkedMedium(MediumTerm mediumTerm);


}
